#include <stdio.h>
#include <stdlib.h>

const char* str = "hello";
int init_glo = 0;
int uninit_glo;

int main(int argc, char* argv[], char* env[])
{
    static int c;
    static int d = 1;
    int* ptr = (int*)malloc(100);
    printf("code addr:%p\n", main);
    printf("only read char addr:%p\n", str);
    printf("init gloabl addr:%p\n", &init_glo);
    printf("init gloabl addr:%p\n", &d);
    printf("uninit gloavl addr:%p\n", &uninit_glo);
    printf("uninit gloavl addr:%p\n", &c);
    printf("head addr:%p\n", ptr);
    printf("stack addr:%p\n", &ptr);
    for(int i = 0; argv[i]; i++)
        printf("argv[%d]:%p\n", i, argv[i]);
    for(int i = 0; env[i]; i++)
        printf("env[%d]:%p\n", i, env[i]);
}

